]> dgit.raspbian.org Git - gnome-shell.git/commit
st/icon: Only load default fallback icon if an icon was set and failed to load
authorAndre Moreira Magalhaes <andre@endlessm.com>
Fri, 3 Apr 2020 13:25:25 +0000 (10:25 -0300)
committerFlorian Müllner <florian.muellner@gmail.com>
Fri, 3 Apr 2020 14:28:24 +0000 (14:28 +0000)
commit7ff7fb5d3b3ee655b1492226f68aeadac846e247
tree45817073d7d65c83db811661a6e0d4746d0e32d4
parent8030d9ad323e5c3e45a158a3d09faa75b3c880d8
st/icon: Only load default fallback icon if an icon was set and failed to load

Commit c89d6a633 introduced a default fallback icon that would be displayed in
case the main gicon or the fallback gicon wasn't set or failed to load.

This broke the use case where a StIcon is created but no main icon or
fallback icon are set on purpose, for example the appindicator extension
which always creates a StIcon to represent icons in menu items but the
actual icons are only set if the application provides one, leaving the
menu showing the default fallback ("image-missing") icon for all menu
entries that don't actually have an icon provided by the application.

Fix that by only using the default fallback icon if the provided one
failed to load.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1173
src/st/st-icon.c